import request from 'uview-ui/libs/request'
class Home {
  /**
	 * 获取首页宫格列表
	 */
  async getGridList() {
    return await request.get('/v1/grid/list')
  }
	/**
	 * 根据名称获取banner
	 * @param {Object} name
	 */
	async getBannerByName(name) {
	  return await request.get(`/v1/banner/name/${name}`)
	}
	
	/**
	 * 获取首页活动
	 * @param {Object} name
	 */
	async getHomeActivity(name) {
		return await request.get(`/v1/activity/name/${name}`)
	}
	
  
}

export default new Home()
